<template>
  <el-dialog :visible.sync="conclusionDialog" :close-on-click-modal="false" :before-close="conclusionCancel" :show-close="false" :close-on-press-escape="false" append-to-body :fullscreen="conclusionDialog" @close="conclusionCancel">
    <div class="conclusion-booklet">
      <h1>长春市长期护理保险失能等级评估结论书</h1>
      <div class="form-group all-font">
        <span>评估对象：</span>
        <span>{{ evltName }}</span>
      </div>
      <div class="form-group all-font">
        <span>身份证号码：</span>
        <span>{{ idNumber }}</span>
      </div>
      <div class="form-group all-font">
        <span>申请人：</span>
        <span>{{ applicantName }}</span>
      </div>
      <p class="all-font">根据《吉林省长期护理保险失能等级评估管理暂行办法》（吉医保联〔2022〕20号），经组织评估，评估对象目前的失能等级评估结论为：
        <span>{{ assessmentLevel }}</span>级{{ sndj }}。</p>
      <p class="all-font">
        <span v-if="isEligible">达到</span>
        <span v-else>未达到</span>长期护理保险待遇享受标准。
      </p>
      <p class="all-font">如对本评估结论不服，可以自收到本结论书之日起 15 个工作日内向长春市社会医疗保险管理局申请复评。</p>
      <div class="signature-section all-font">
        <p>评估机构（盖章）</p>
        <p>{{ assessmentDate }}</p>
      </div>
      <!--
      <p class="note all-font">注：本结论书一式三份，涂改无效，申请人、失能评估机构、委托承办机构各一份。</p>-->
    </div>
    <div slot="footer" class="not-print-content">
      <el-button type="primary" @click="print">打 印</el-button>
      <el-button @click="conclusionCancel">关 闭</el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      conclusionDialog: false,
      zhsqObj: null,
      evltName: '张三',
      applicantName: '张三',
      idNumber: '123456789012345678',
      assessmentLevel: '3', // 示例等级
      isEligible: true, // 是否符合享受标准
      assessmentDate: '2023年10月1日',
      sndj: ''
    }
  },
  methods: {
    conclusionCancel() {
      this.conclusionDialog = false
    },
    print() {
      window.print()
    }
  }
}
</script>

<style scoped>
.conclusion-booklet {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  border: 0px solid #ccc;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.8;
}

.conclusion-booklet h1 {
  text-align: center;
  margin-bottom: 20px;
}

.all-font {
  font-size: 20px;
  text-indent: 30px;
  letter-spacing: 2px;
  line-height: 1.8;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  width: 100px;
}

.signature-section {
  text-align: right;
  margin-top: 175px;
}

.signature-section p {
  text-indent: 30px;
  letter-spacing: 2px;
  line-height: 1.8;
}

.note {
  margin-top: 85px;
}
@media print {
  .not-print-content {
    display: none;
  }
}
</style>
